#ifndef ORDERSERVICE_H
#define ORDERSERVICE_H

#include <QString>
#include <QJsonArray>
#include <QJsonDocument>
#include "dal/dao/OrderDataAccess.h"
#include "dal/dao/AddressBookDataAccess.h"
#include "dal/dao/ProductDataAccess.h"
#include "entity/Product.h"
#include "entity/Address.h"
#include "entity/OrderDetail.h"
#include "entity/Order.h"

// 订单数据业务类
class OrderService
{
public:
    QJsonObject getOrders(int userId);
    bool buy(QJsonObject &userOrder);
};

#endif // ORDERSERVICE_H
